# -*- coding:utf-8 -*-
# @FileName :actions.py
# @Created  :2024/9/26
# @Author   :天空之城
class PokerActions:
    FOLD = 'fold'
    CALL = 'call'
    RAISE = 'raise_bet'
    ALL_IN = 'all_in'
    CHECK = 'check'
    ACTIONS = {FOLD: '弃牌', CALL: '跟注', RAISE: '加注', ALL_IN: '全押', CHECK: '看牌'}
    REVERSED_ACTIONS = {value: key for key, value in ACTIONS.items()}

    @classmethod
    def get_action_name(cls, action_code):
        """Returns the name of the action given the action code."""
        return cls.ACTIONS.get(action_code, "未知动作")
